package oop.ex1.actions;
import java.io.File;
import java.io.IOException;
//###############
//FILE : DiskAttributesFilter.java
//WRITER : Amir Wilf, wilfoa, 300007085
//WRITER : Daniel Acherkan, danithelion, 310116348
//EXERCISE : oop ex1 2011
//DESCRIPTION:
//A abstract class for actions that involve creating a file in a new location
//###############
public abstract class DirectoryAction implements Action{

	//Data Members:
	//_source - original location of a file.
	protected String _source;
	//_target - the target location of a file.
	protected String _target;
	
	/**
	 * A Constructor for the class.
	 */
	public DirectoryAction(String source, String target){
		this._source = source;
		this._target = target;
	}
	/**
	 * This method is to be implemented by extending classes and will
	 * perform an action on file
	 * @param file The file to perform the action on
	 */
	public abstract void doAction(File file) throws IOException;
}
